<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/4/7
  Time: 14:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户信息新增显示</title>
    <%--    引入jquery资源文件：必须在bootstrap资源文件之前引入--%>
    <script type="text/javascript" src="jquery-1.12.4/jquery-1.12.4.js"></script>
    <%--    引入bootstrap的资源文件--%>
    <script type="text/javascript" src="bootstrap-3.3.6-dist/js/bootstrap.js"></script>
    <link  rel="stylesheet" type="text/css" href="bootstrap-3.3.6-dist/css/bootstrap.css">
</head>
<body style="width: 100%;">
<div style="width: 90%;margin: 10px auto">
    <div>
    <table class="table table-hover">
        <thead>
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>地址</th>
            <th>联系电话</th>
            <th>注册日期</th>
            <th>头像</th>
        </tr>
        </thead>

        <tbody>
        <c:forEach items="${sessionScope.lstAllUserInfo}" var="eachBean" varStatus="stat">
            <tr>
            <th scope="row">${stat.index + 1}</th>
            <td>${eachBean.userName}</td>
            <td>${eachBean.userAddress}</td>
            <td>${eachBean.userTel}</td>
            <td>${eachBean.userRegDate}</td>
<%--                src属性指明img标签显示的图片的路径--%>
            <td><img src="${eachBean.userImg}" style="width: 40px;height: 30px"></td>
        </tr>
        </c:forEach>
        </tbody>
    </table>
</div>

</div>

</body>
</html>
